package com.scau.pojo;

import java.util.ArrayList;
import java.util.List;

public class CompanyInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CompanyInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUsernameIsNull() {
            addCriterion("username is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("username is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("username =", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("username <>", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("username >", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("username >=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("username <", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("username <=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("username like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("username not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("username in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("username not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("username between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("username not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnIsNull() {
            addCriterion("company_name_cn is null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnIsNotNull() {
            addCriterion("company_name_cn is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnEqualTo(String value) {
            addCriterion("company_name_cn =", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnNotEqualTo(String value) {
            addCriterion("company_name_cn <>", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnGreaterThan(String value) {
            addCriterion("company_name_cn >", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnGreaterThanOrEqualTo(String value) {
            addCriterion("company_name_cn >=", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnLessThan(String value) {
            addCriterion("company_name_cn <", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnLessThanOrEqualTo(String value) {
            addCriterion("company_name_cn <=", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnLike(String value) {
            addCriterion("company_name_cn like", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnNotLike(String value) {
            addCriterion("company_name_cn not like", value, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnIn(List<String> values) {
            addCriterion("company_name_cn in", values, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnNotIn(List<String> values) {
            addCriterion("company_name_cn not in", values, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnBetween(String value1, String value2) {
            addCriterion("company_name_cn between", value1, value2, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameCnNotBetween(String value1, String value2) {
            addCriterion("company_name_cn not between", value1, value2, "companyNameCn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnIsNull() {
            addCriterion("company_name_en is null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnIsNotNull() {
            addCriterion("company_name_en is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnEqualTo(String value) {
            addCriterion("company_name_en =", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnNotEqualTo(String value) {
            addCriterion("company_name_en <>", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnGreaterThan(String value) {
            addCriterion("company_name_en >", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnGreaterThanOrEqualTo(String value) {
            addCriterion("company_name_en >=", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnLessThan(String value) {
            addCriterion("company_name_en <", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnLessThanOrEqualTo(String value) {
            addCriterion("company_name_en <=", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnLike(String value) {
            addCriterion("company_name_en like", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnNotLike(String value) {
            addCriterion("company_name_en not like", value, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnIn(List<String> values) {
            addCriterion("company_name_en in", values, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnNotIn(List<String> values) {
            addCriterion("company_name_en not in", values, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnBetween(String value1, String value2) {
            addCriterion("company_name_en between", value1, value2, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEnNotBetween(String value1, String value2) {
            addCriterion("company_name_en not between", value1, value2, "companyNameEn");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionIsNull() {
            addCriterion("biref_introduction is null");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionIsNotNull() {
            addCriterion("biref_introduction is not null");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionEqualTo(String value) {
            addCriterion("biref_introduction =", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionNotEqualTo(String value) {
            addCriterion("biref_introduction <>", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionGreaterThan(String value) {
            addCriterion("biref_introduction >", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionGreaterThanOrEqualTo(String value) {
            addCriterion("biref_introduction >=", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionLessThan(String value) {
            addCriterion("biref_introduction <", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionLessThanOrEqualTo(String value) {
            addCriterion("biref_introduction <=", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionLike(String value) {
            addCriterion("biref_introduction like", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionNotLike(String value) {
            addCriterion("biref_introduction not like", value, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionIn(List<String> values) {
            addCriterion("biref_introduction in", values, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionNotIn(List<String> values) {
            addCriterion("biref_introduction not in", values, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionBetween(String value1, String value2) {
            addCriterion("biref_introduction between", value1, value2, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andBirefIntroductionNotBetween(String value1, String value2) {
            addCriterion("biref_introduction not between", value1, value2, "birefIntroduction");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeIsNull() {
            addCriterion("gmc_report_type is null");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeIsNotNull() {
            addCriterion("gmc_report_type is not null");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeEqualTo(String value) {
            addCriterion("gmc_report_type =", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeNotEqualTo(String value) {
            addCriterion("gmc_report_type <>", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeGreaterThan(String value) {
            addCriterion("gmc_report_type >", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeGreaterThanOrEqualTo(String value) {
            addCriterion("gmc_report_type >=", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeLessThan(String value) {
            addCriterion("gmc_report_type <", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeLessThanOrEqualTo(String value) {
            addCriterion("gmc_report_type <=", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeLike(String value) {
            addCriterion("gmc_report_type like", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeNotLike(String value) {
            addCriterion("gmc_report_type not like", value, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeIn(List<String> values) {
            addCriterion("gmc_report_type in", values, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeNotIn(List<String> values) {
            addCriterion("gmc_report_type not in", values, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeBetween(String value1, String value2) {
            addCriterion("gmc_report_type between", value1, value2, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReportTypeNotBetween(String value1, String value2) {
            addCriterion("gmc_report_type not between", value1, value2, "gmcReportType");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlIsNull() {
            addCriterion("gmc_reprot_url is null");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlIsNotNull() {
            addCriterion("gmc_reprot_url is not null");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlEqualTo(String value) {
            addCriterion("gmc_reprot_url =", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlNotEqualTo(String value) {
            addCriterion("gmc_reprot_url <>", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlGreaterThan(String value) {
            addCriterion("gmc_reprot_url >", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlGreaterThanOrEqualTo(String value) {
            addCriterion("gmc_reprot_url >=", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlLessThan(String value) {
            addCriterion("gmc_reprot_url <", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlLessThanOrEqualTo(String value) {
            addCriterion("gmc_reprot_url <=", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlLike(String value) {
            addCriterion("gmc_reprot_url like", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlNotLike(String value) {
            addCriterion("gmc_reprot_url not like", value, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlIn(List<String> values) {
            addCriterion("gmc_reprot_url in", values, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlNotIn(List<String> values) {
            addCriterion("gmc_reprot_url not in", values, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlBetween(String value1, String value2) {
            addCriterion("gmc_reprot_url between", value1, value2, "gmcReprotUrl");
            return (Criteria) this;
        }

        public Criteria andGmcReprotUrlNotBetween(String value1, String value2) {
            addCriterion("gmc_reprot_url not between", value1, value2, "gmcReprotUrl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}